import request from '@/utils/request'

// 查询检测站列表
export function listStation(query) {
  return request({
    url: '/station/station/list',
    method: 'get',
    params: query
  })
}

// 查询检测站详细
export function getStation(id) {
  return request({
    url: '/station/station/' + id,
    method: 'get'
  })
}

// 新增检测站
export function addStation(data) {
  return request({
    url: '/station/station',
    method: 'post',
    data: data
  })
}

// 修改检测站
export function updateStation(data) {
  return request({
    url: '/station/station',
    method: 'put',
    data: data
  })
}

// 删除检测站
export function delStation(id) {
  return request({
    url: '/station/station/' + id,
    method: 'delete'
  })
}

// 导出检测站
export function exportStation(query) {
  return request({
    url: '/station/station/export',
    method: 'get',
    params: query
  })
}

// 门头头像上传
export function uploadAvatar(data) {
  return request({
    url: '/station/station/avatar',
    method: 'post',
    data: data
  })
}

// 查询所有检测站列表
export function allListStation(query) {
  return request({
    url: '/station/station/allList',
    method: 'get',
    params: query
  })
}


